import http from "./http.js";
import config from "@/config/index.config.js";

// 绑定手机号
export const bindPhoneForWx = (data) => http.POST(`${config.baseUrl}/ums/bindPhoneForWx`, data);
// 小程序授权登录（不获取手机号）
export const xcxUserLogin = (data) => http.POST(`${config.baseUrl}/login/mWxLogin`, data);
// 小程序授权登录（不获取手机号）
export const dyUserLogin = (data) => http.POST(`${config.baseUrl}/login/mDyLogin`, data);
// 小程序授权登录2(获取手机号)
export const xcxLogin = (data) => http.POST(`${config.baseUrl}/login/xcxLogin`, data);
//小程序获取openId
export const getOpenId = (data) => http.GET(`${config.baseUrl}/login/getOpenId`, data);
//小程序获取openId
export const getDyOpenId = (data) => http.GET(`${config.baseUrl}/login/getDyOpenId`, data);
// 小程序绑定手机号登录
export const bindPhoneForXcx = (data) => http.POST(`${config.baseUrl}/login/bindPhoneForXcx`, data);
// 小程序手机号登录
export const phoneLoginForWx = (data) => http.POST(`${config.baseUrl}/login/phoneLoginForWx`, data);
 

// 账号密码登录
export const memberLogin = (data) => http.POST(`${config.baseUrl}/login/mLogin`, data);
// 手机号验证码登录
export const memberLoginForCode = (data) => http.POST(`${config.baseUrl}/login/mPhoneLogin`, data);
// 获取验证码
export const getVerifyCode = (data,cfg) => http.POST(`${config.baseUrl}/login/getSmsCode`, data,cfg);
// 获取邮箱验证码
export const getEmailCode = (data,cfg) => http.POST(`${config.baseUrl}/login/getEmailCode`, data,cfg);


// 获取用户资料
export const getUserInfo = (data) => http.GET(`${config.baseUrl}/user/getUserInfo`, data);
// 获取用户菜单权限
export const getUserPermissionByToken = (data) => http.GET(`${config.baseUrl}/user/getUserPermissionByToken`, data);
// 获取移动端角色列表
export const getAppRoles = (data) => http.GET(`${config.baseUrl}/user/getAppRoles`, data);
// 绑定手机号
export const bindPhone = (data) => http.POST(`${config.baseUrl}/user/bindPhone`,data);
// 更新用户信息
export const updateUser = (data) => http.POST(`${config.baseUrl}/user/updateUser`,data);
// 添加公司招聘人员
export const addCompanyUser = (data) => http.POST(`${config.baseUrl}/user/addCompanyUser`,data);
// 移除公司招聘人员
export const delCompanyUser = (data) => http.POST(`${config.baseUrl}/user/delCompanyUser`,data);
// 企业招聘人员列表
export const getCompanyUserList = (data) => http.GET(`${config.baseUrl}/user/getCompanyUserList`, data);
// 查询用户额度
export const getParamLimit = (data) => http.GET(`${config.baseUrl}/user/getParamLimit`, data);
// 注销账号
export const cancelAccount = (data) => http.POST(`${config.baseUrl}/user/cancelAccount`, data);
// 重设密码
export const resetPwd = (data) => http.POST(`${config.baseUrl}/user/resetPwd`, data);
// 用户角色切换
export const switchRole = (data) => http.POST(`${config.baseUrl}/user/switchRole`, data);

// 查询轮播图
export const getBanners = (data) => http.GET(`${config.baseUrl}/cms/getAdList`, data);
// 查询首页分类信息
export const getTypeList = (data) => http.GET(`${config.baseUrl}/cms/getTypeList`, data)

// 关于我们
export const getAboutUs = (data) => http.GET(`${config.baseUrl}/cms/aboutUs/detail`, data);
// 联系我们
export const getContactUs = (data) => http.GET(`${config.baseUrl}/cms/contactUs/detail`, data);
// 平台说明内容
export const getHelpDetail = (data) => http.GET(`${config.baseUrl}/cms/getArticle`, data);
// 查询公告列表
export const getNoticeList = (data) => http.GET(`${config.baseUrl}/cms/getNoticeList`, data);
// 查询公告详情
export const getNoticeDetail = (data) => http.GET(`${config.baseUrl}/cms/getNoticeDetail`, data);
// 查询公告未读数量
export const getUnReadCount = (data) => http.GET(`${config.baseUrl}/cms/getUnReadCount`, data);
// 添加意见反馈
export const addFeedback = (data) => http.GET(`${config.baseUrl}/cms/feedback/add`, data);


// 查询行业列表
export const getIndustryList = (data) => http.GET(`${config.baseUrl}/bms/getIndustryList`, data);
// 查询职位列表
export const getPostList = (data) => http.GET(`${config.baseUrl}/bms/getPostList`, data);
// 查询热门职位列表
export const getHotPostList = (data) => http.GET(`${config.baseUrl}/bms/getHotPostList`, data);
// 查询福利列表
export const getWelfareList = (data) => http.GET(`${config.baseUrl}/bms/getWelfareList`, data);
// 查询职位列表
export const getPostPageList = (data) => http.GET(`${config.baseUrl}/bms/getPostPageList`, data);
// 查询城市列表
export const getCityList = (data) => http.GET(`${config.baseUrl}/bms/getCityList`, data);
// 查询学校列表
export const getSchoolList = (data) => http.GET(`${config.baseUrl}/bms/getSchoolList`, data);
// 查询配置
export const getConfigList = (data) => http.GET(`${config.baseUrl}/bms/getConfigList`, data);



// 查询简历信息
export const getResumeList = (data) => http.GET(`${config.baseUrl}/wms/getResumeList`, data);
// 查询简历完整信息
export const getResume = (data) => http.GET(`${config.baseUrl}/wms/getResume`, data);
// 查询简历基本信息
export const getResumeInfo = (data) => http.GET(`${config.baseUrl}/wms/getResumeInfo`, data);
//更新简历基本信息
export const updateResumeBasic = (data) => http.POST(`${config.baseUrl}/wms/updateResumeBasic`, data);

// 查询期望职位列表
export const getJobExpectList = (data) => http.GET(`${config.baseUrl}/wms/getJobExpectList`, data);
// 查询期望职位详情
export const getJobExpectDetail = (data) => http.GET(`${config.baseUrl}/wms/getJobExpectDetail`, data);
// 新增/更新期望职位
export const updateJobExpect = (data) => http.POST(`${config.baseUrl}/wms/updateJobExpect`, data);
// 删除期望职位
export const deleteJobExpectById = (data) => http.GET(`${config.baseUrl}/wms/deleteJobExpectById`, data);
// 导出简历
export const exportResumeWord = (data) => http.GET(`${config.baseUrl}/wms/exportWord`, data);
// 查询附件简历列表
export const getResumeFileList = (data) => http.GET(`${config.baseUrl}/wms/getResumeFileList`, data);
// 删除附件简历
export const deleteResumeFileById = (data) => http.POST(`${config.baseUrl}/wms/deleteResumeFileById`, data);


// 查询工作经历列表
export const getWorkExpList = (data) => http.GET(`${config.baseUrl}/wms/getWorkExpList`, data);
// 查询工作经历详情
export const getWorkExpDetail = (data) => http.GET(`${config.baseUrl}/wms/getWorkExpDetail`, data);
// 新增/更新工作经历
export const updateWorkExp = (data) => http.POST(`${config.baseUrl}/wms/updateWorkExp`, data);
// 删除工作经历
export const deleteWorkExpById = (data) => http.POST(`${config.baseUrl}/wms/deleteWorkExpById`, data);

// 查询项目经历列表
export const getProExpList = (data) => http.GET(`${config.baseUrl}/wms/getProExpList`, data);
// 查询项目经历详情
export const getProExpDetail = (data) => http.GET(`${config.baseUrl}/wms/getProExpDetail`, data);
// 新增/更新项目经历
export const updateProExp = (data) => http.POST(`${config.baseUrl}/wms/updateProExp`, data);
// 删除项目经历
export const deleteProExpById = (data) => http.POST(`${config.baseUrl}/wms/deleteProExpById`, data);

// 查询教育经历列表
export const getEduExpList = (data) => http.GET(`${config.baseUrl}/wms/getEduExpList`, data);
// 查询教育经历详情
export const getEduExpDetail = (data) => http.GET(`${config.baseUrl}/wms/getEduExpDetail`, data);
// 新增/更新教育经历
export const updateEduExp = (data) => http.POST(`${config.baseUrl}/wms/updateEduExp`, data);
// 删除教育经历
export const deleteEduExpById = (data) => http.POST(`${config.baseUrl}/wms/deleteEduExpById`, data);

// 查询个人荣誉列表
export const getHonorList = (data) => http.GET(`${config.baseUrl}/wms/getHonorList`, data);
// 查询个人荣誉详情
export const getHonorDetail = (data) => http.GET(`${config.baseUrl}/wms/getHonorDetail`, data);
// 新增/更新个人荣誉
export const updateHonor = (data) => http.POST(`${config.baseUrl}/wms/updateHonor`, data);
// 删除个人荣誉
export const deleteHonorById = (data) => http.POST(`${config.baseUrl}/wms/deleteHonorById`, data);


// 查询公司列表
export const getCompanyList = (data) => http.GET(`${config.baseUrl}/rms/getCompanyList`, data);
// 查询公司列表(字段精简)
export const getCompanyListForSelect = (data) => http.GET(`${config.baseUrl}/rms/getCompanyListForSelect`, data);

// 新增/更新公司信息
export const updateCompany = (data) => http.POST(`${config.baseUrl}/rms/updateCompany`, data);
// 查询公司信息
export const getCompanyDetail = (data) => http.GET(`${config.baseUrl}/rms/getCompanyDetail`, data);
// 新增/更新职位信息
export const updatePosition = (data) => http.POST(`${config.baseUrl}/rms/updatePosition`, data);
// 公司认证
export const updateCompanyAuth = (data) => http.POST(`${config.baseUrl}/rms/updateAuth`, data);
// 营业执照图片识别
export const getBusinessLicenseInfo = (data) => http.GET(`${config.baseUrl}/rms/getBusinessLicenseInfo`, data);


// 查询职位信息
export const getPositionDetail = (data) => http.GET(`${config.baseUrl}/rms/getPositionDetail`, data);
// 查询公司职位列表
export const getCompanyPositionList = (data) => http.GET(`${config.baseUrl}/rms/getCompanyPositionList`, data);
// 删除公司职位
export const deletePositionById = (data) => http.GET(`${config.baseUrl}/rms/deletePositionById`, data);
// 查询职位列表
export const getPositionList = (data) => http.GET(`${config.baseUrl}/rms/getPositionList`, data);


// 查询课程列表
export const getCourseList = (data) => http.GET(`${config.baseUrl}/course/getCourseList`, data);
// 查询课程详情
export const getCourseDetail = (data) => http.GET(`${config.baseUrl}/course/getCourseDetail`, data);
// 课程报名
export const applyCourse = (data) => http.POST(`${config.baseUrl}/course/applyCourse`, data);
// 查询我的课程列表
export const getApplyCourseList = (data) => http.GET(`${config.baseUrl}/course/getApplyCourseList`, data);


// 查询外包任务列表
export const getTaskList = (data) => http.GET(`${config.baseUrl}/task/getTaskList`, data);
// 查询外包任务列表
export const getMyTaskList = (data) => http.GET(`${config.baseUrl}/task/getMyTaskList`, data);

// 查询外包任务详情
export const getTaskDetail = (data) => http.GET(`${config.baseUrl}/task/getTaskDetail`, data);
// 新增/更新外包任务信息
export const updateTask = (data) => http.POST(`${config.baseUrl}/task/addOrUpdateTask`, data);
// 删除外包任务
export const deleteTaskById = (data) => http.GET(`${config.baseUrl}/task/deleteTask`, data);
// 外包任务报名
export const applyTask = (data) => http.POST(`${config.baseUrl}/task/applyTask`, data);
// 查询我的任务列表
export const getApplyTaskList = (data) => http.GET(`${config.baseUrl}/task/getApplyTaskList`, data);

// 查询收藏列表
export const getCollectList = (data) => http.GET(`${config.baseUrl}/collect/getCollectList`, data);
// 查询收藏详情
export const getCollectDetail = (data) => http.GET(`${config.baseUrl}/collect/getCollectDetail`, data);
// 新增/更新收藏信息
export const updateCollect = (data) => http.POST(`${config.baseUrl}/collect/addOrUpdateCollect`, data);
// 删除收藏
export const deleteCollectById = (data) => http.POST(`${config.baseUrl}/collect/deleteCollect`, data);

// 查询职位申请列表
export const getApplyList = (data) => http.GET(`${config.baseUrl}/apply/getApplyList`, data);
// 查询职位申请详情
export const getApplyDetail = (data) => http.GET(`${config.baseUrl}/apply/getApplyDetail`, data);
// 新增/更新职位申请
export const updateApply = (data) => http.POST(`${config.baseUrl}/apply/addOrUpdateApply`, data);
// 更新简历状态
export const updateApplyStatus = (data) => http.POST(`${config.baseUrl}/apply/updateApplyStatus`, data);
// 删除职位申请
export const deleteApplyById = (data) => http.POST(`${config.baseUrl}/apply/deleteApply`, data);
// 添加职位申请查看记录
export const updateApplyRead = (data) => http.POST(`${config.baseUrl}/apply/addApplyRead`, data);
// 查询投递反馈列表
export const getApplyResponseList = (data) => http.GET(`${config.baseUrl}/apply/getApplyResponseList`, data);
// 查询投递日志列表
export const getApplyLogList = (data) => http.GET(`${config.baseUrl}/apply/getApplyLogList`, data);
// 查询接收简历列表
export const getApplyComList = (data) => http.GET(`${config.baseUrl}/apply/getApplyComList`, data);

// 查询AI提示词
export const getAiPrompt = (data) => http.GET(`${config.baseUrl}/apply/getAiPrompt`, data);



// 查询浏览记录列表
export const getBrowseList = (data) => http.GET(`${config.baseUrl}/browse/getBrowseList`, data);
// 查询看过我列表
export const getVisitList = (data) => http.GET(`${config.baseUrl}/browse/getVisitList`, data);
// 查询浏览记录详情
export const getBrowseDetail = (data) => http.GET(`${config.baseUrl}/browse/getBrowseDetail`, data);
// 新增/更新浏览记录
export const updateBrowse = (data) => http.POST(`${config.baseUrl}/browse/addOrUpdateBrowse`, data);
// 删除浏览记录
export const deleteBrowseById = (data) => http.POST(`${config.baseUrl}/browse/deleteBrowse`, data);

// 查询沟通记录列表
export const getCommList = (data) => http.GET(`${config.baseUrl}/comm/getCommList`, data);
// 查询沟通记录详情
export const getCommDetail = (data) => http.GET(`${config.baseUrl}/comm/getCommDetail`, data);
// 新增/更新沟通记录
export const updateComm = (data) => http.POST(`${config.baseUrl}/comm/addOrUpdateComm`, data);
// 删除沟通记录
export const deleteCommById = (data) => http.POST(`${config.baseUrl}/comm/deleteComm`, data);
// 查询对话基本信息
export const getChatBaseInfo = (data) => http.GET(`${config.baseUrl}/comm/getChatBaseInfo`, data);

// 查询分享记录列表
export const getShareList = (data) => http.GET(`${config.baseUrl}/share/getShareList`, data);
// 查询分享记录详情
export const getShareDetail = (data) => http.GET(`${config.baseUrl}/share/getShareDetail`, data);
// 新增/更新分享记录
export const updateShare = (data) => http.POST(`${config.baseUrl}/share/addOrUpdateShare`, data);
// 删除分享记录
export const deleteShareById = (data) => http.POST(`${config.baseUrl}/share/deleteShare`, data);

// 查询交易明细
export const getFinanceList = (data) => http.GET(`${config.baseUrl}/finance/getFinanceList`, data);
// 查询提现记录
export const getWithdrawList = (data) => http.GET(`${config.baseUrl}/finance/getWithdrawList`, data);
// 查询账户余额
export const getAccountDetail = (data) => http.GET(`${config.baseUrl}/finance/getAccountDetail`, data);
// 提现申请
export const withdrawApply = (data) => http.POST(`${config.baseUrl}/finance/withdrawApply`, data);

// 查询法律法规列表
export const getLawList = (data) => http.GET(`${config.baseUrl}/cms/law/list`, data);
// 查询法律法规列详情
export const getLawDetail = (data) => http.GET(`${config.baseUrl}/cms/law/detail`, data);

// 查询屏蔽公司列表
export const getShieldList = (data) => http.GET(`${config.baseUrl}/shield/getShieldList`, data);
// 新增/更新屏蔽公司
export const updateShield = (data) => http.POST(`${config.baseUrl}/shield/addOrUpdateShield`, data);
// 删除屏蔽公司
export const deleteShieldById = (data) => http.POST(`${config.baseUrl}/shield/deleteShield`, data);

// 查询常见问题列表
export const getChatAskList = (data) => http.GET(`${config.baseUrl}/chat/getChatAskList`, data);
// 查询回复信息
export const getChatReply = (data) => http.GET(`${config.baseUrl}/chat/getChatReply`, data);
// 查询智能聊天记录
export const getRobotLogList = (data) => http.GET(`${config.baseUrl}/chat/getRobotLogList`, data);
// 新增智能聊天记录
export const addRobotLog = (data) => http.POST(`${config.baseUrl}/chat/addRobotLog`, data);
// 清空聊天记录
export const clearAll = (data) => http.POST(`${config.baseUrl}/chat/clearAll`, data);

// 文件上传
export const uploadFile = (data) => http.POST(`${config.baseUrl}/file/upload`, data);
// 简历附件上传
export const uploadResumeFile = (data) => http.POST(`${config.baseUrl}/wms/uploadResumeFile`, data);

// 用户登录
export const postLogin = (data) => http.POST(`${config.baseUrl}/ums/xcxUserLogin`, data);
// 获取短信验证码
export const getMsgCode = (data) => http.GET(`${config.baseUrl}/register/sendMsg`, data);
// 校验注册验证码
export const postRegCode = (data) => http.POST(`${config.baseUrl}/register/verifySMSCode`, data);


// 查询培训类别
export const getTrainTypeList = (data) => http.GET(`${config.baseUrl}/train/getTrainTypeList`, data);
// 查询培训资料列表
export const getTrainList = (data) => http.GET(`${config.baseUrl}/train/getTrainList`, data);
// 查询培训资料详情
export const getTrainFileDetail = (data) => http.GET(`${config.baseUrl}/train/getTrainFileDetail`, data);

// 查询支付方式
export const getPayTypeList = (data) => http.GET(`${config.baseUrl}/vip/getPayTypeList`, data);
// VIP
export const getVipList = (data) => http.GET(`${config.baseUrl}/vip/getVipList`, data);
// 会员购买
export const createVipOrder = (data) => http.POST(`${config.baseUrl}/vip/createVipOrder`, data);

// 兑换积分
export const integralExchange = (data) => http.POST(`${config.baseUrl}/integral/integralExchange`, data);
// 积分转赠
export const integralTransfer = (data) => http.POST(`${config.baseUrl}/integral/integralTransfer`, data);
// 积分日志
export const getIntegralLogList = (data) => http.GET(`${config.baseUrl}/integral/getIntegralLogList`, data);
// 查询积分道具列表
export const getJfGoodsList = (data) => http.GET(`${config.baseUrl}/integral/getJfGoodsList`, data);
// 购买积分道具
export const createJfOrder = (data) => http.POST(`${config.baseUrl}/integral/createJfOrder`, data);




// 邀新统计
export const getReferrerCount = (data) => http.GET(`${config.baseUrl}/referrer/getReferrerCount`, data);
// 邀请记录
export const getReferrerList = (data) => http.GET(`${config.baseUrl}/referrer/getReferrerList`, data);

// 添加/更新培训师
export const addOrUpdatePlaner = (data) => http.POST(`${config.baseUrl}/plan/addOrUpdatePlaner`, data);
// 培训师列表
export const getPlanerList = (data) => http.GET(`${config.baseUrl}/plan/getPlanerList`, data);
// 培训师详情（根据id查询）
export const getPlanerDetail = (data) => http.GET(`${config.baseUrl}/plan/getPlanerDetail`, data);
// 培训师详情（根据token查询自己）
export const getDetail = (data) => http.GET(`${config.baseUrl}/plan/getDetail`, data);
// 咨询订单查询
export const getPlanOrder = (data) => http.GET(`${config.baseUrl}/plan/getPlanOrder`, data);
// 更新对话状态
export const updateDialogStage = (data) => http.POST(`${config.baseUrl}/plan/updateDialogStage`, data);
// 咨询订单查询
export const getPlanOrderList = (data) => http.GET(`${config.baseUrl}/plan/getPlanOrderList`, data);


// 咨询支付
export const createPlanPay = (data) => http.POST(`${config.baseUrl}/pay/createPlanPay`, data);

// 字典查询
export const getDictItems = (data) => http.GET(`${config.baseUrl}/dict/getDictItems`, data);

// 系统分类查询
export const getSysCategory = (data) => http.GET(`${config.baseUrl}/dict/loadTreeData`, data);

// 查询关系列表
export const getMemberRelationist = (data) => http.GET(`${config.baseUrl}/relation/getMemberRelationist`, data);
// 绑定家长关系
export const bindChild = (data) => http.POST(`${config.baseUrl}/relation/bindChild`, data);
// 绑定导师/学生关系
export const bindStudent = (data) => http.POST(`${config.baseUrl}/relation/bindStudent`, data);
// 确认关系
export const ensureRelation = (data) => http.POST(`${config.baseUrl}/relation/ensureRelation`, data);
// 移除用户关系
export const removeRelation = (data) => http.POST(`${config.baseUrl}/relation/removeRelation`, data);

// 查询签到情况
export const getSignedList = (data) => http.GET(`${config.baseUrl}/sign/getSignedList`, data);
// 签到
export const sign = (data) => http.POST(`${config.baseUrl}/sign/sign`, data);
// 查询今明两天签到情况
export const getLastSign = (data) => http.GET(`${config.baseUrl}/sign/getLastSign`, data);
// 查询签到积分
export const getSignIntegral = (data) => http.GET(`${config.baseUrl}/sign/getSignIntegral`, data);

// 添加/更新个人卡片
export const addOrUpdateCard = (data) => http.POST(`${config.baseUrl}/card/addOrUpdateCard`, data);
// 查询个人卡片详情
export const getCardDetail = (data) => http.GET(`${config.baseUrl}/card/getCardDetail`, data);
